package com.aaa.feign;

import com.aaa.entity.OOrder;
import com.aaa.vo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@FeignClient(value = "front-page1")
public interface OrderFeign {
    @PostMapping("/order/findBycode/{code}")
    List<OOrder> findBycode(String code);
    @PostMapping("/order/updateSumNum/{residue}/#{id}")
    int updateSumNum(@PathVariable String residue, @PathVariable Integer id);
    @GetMapping("/order/updete/{id}")
    Result updete(@PathVariable String id);
}
